package com.study.handler;

public abstract  class Leader {

    protected String name;
    protected Leader successor;
    public Leader(String name)
    {
        this.name=name;
    }
    public void setSuccessor(Leader successor)
    { // 设置下一个处理者
        this.successor=successor;
    }
    public abstract void handleRequest(LeaveRequest request); // 处理请求

}
